<form id="show-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
        <legend>发货单货品</legend>
    </fieldset>
    <table class="layui-table" lay-size="sm">
        <colgroup>
            <col width="150">
            <col width="200">
            <col>
        </colgroup>
        <thead>
        <tr>
            <th>BN</th>
            <th>货号</th>
            <th>名称</th>
            <th>数量</th>
        </tr>
        </thead>
        <tbody>
        {volist name="row['deliveryItems']" id="vo" key="key"}
        <tr>
            <td>
                <input type="text" readonly value="{$vo.bn ?? ''}"  placeholder="BN" autocomplete="off" class="layui-input">
            </td>
            <td>
                <input type="text" readonly value="{$vo.sn ?? ''}"  placeholder="SN" autocomplete="off" class="layui-input">
            </td>
            <td>
                {$vo.name}
            </td>
            <td class="have-add-td">
                <input type="number" readonly value="{$vo.num}"  placeholder="数量" autocomplete="off" class="layui-input goods-stock">
            </td>
        </tr>
        {/volist}
        </tbody>
    </table>
    <fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
        <legend>发货单详情</legend>
    </fieldset>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Order_sn')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-order_sn" readonly data-rule="required" class="form-control" name="row[order_sn]" type="text" value="{$row.order_sn|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Delivery_sn')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-delivery_sn" readonly data-rule="required" class="form-control" name="row[delivery_sn]" type="text" value="{$row.delivery_sn|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Is_nomal_virtual')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-is_nomal_virtual" readonly data-rule="required" class="form-control" name="row[is_nomal_virtual]" value="{$row.is_nomal_virtual|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Logi_code')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-logi_code" readonly class="form-control" name="row[logi_code]" type="text" value="{$row.logi_code|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Logi_no')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-logi_no" readonly  class="form-control" name="row[logi_no]" type="text" value="{$row.logi_no|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Ship_name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-ship_name" readonly class="form-control" name="row[ship_name]" type="text" value="{$row.ship_name|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Ship_mobile')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-ship_mobile" readonly class="form-control" name="row[ship_mobile]" type="text" value="{$row.ship_mobile|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Ship_area')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-ship_area" readonly class="form-control" name="row[ship_area]" type="text" value="{$row.ship_area|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Ship_detail')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-ship_detail" readonly class="form-control" name="row[ship_detail]" type="text" value="{$row.ship_detail|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Confirm_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-confirm_time" readonly class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[confirm_time]" type="text" value="{:$row.confirm_time?datetime($row.confirm_time):''}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-status" readonly data-rule="required" class="form-control" name="row[status]" value="{$row.status|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Remark')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-remark" readonly class="form-control" name="row[remark]" type="text" value="{$row.remark|htmlentities}">
        </div>
    </div>
</form>
